You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(i).attr(','s1=js&s2=' + slider.slides.eq(i).attr(','GET','s1=js&s2=' + slide...' at line 2